function gridToolPanel_CreateFcn(h, e)
%GRIDTOOLPANEL_CREATEFCN Summary of this function goes here
%   Detailed explanation goes here

handles = guihandles(h);
fig= handles.dhaqtool;

set(h, 'tag', 'gridToolPanel')
set(h, 'gridsize',[1 1]);
setappdata(h, 'rowdefinitions', [NaN]);
setappdata(h, 'columndefinitions', [NaN]);
setappdata(h, 'resizefcn', get(h, 'resizefcn'));
set(h, 'resizefcn', @uigridcontainer_ResizeFcn);

PluginFiles= getappdata(fig, 'PluginFiles');
PluginCount= getappdata(fig, 'PluginCount');

[Value_List List_Length]= plugins_ParseFcn(PluginFiles, PluginCount, 'ToolPanel', 'Content', 'Width');

for i= 1:List_Length
    GenerateFcn= Value_List{i, 1};
    Width= str2num(Value_List{i, 2}); %#ok<ST2NM>
    if isempty(Width)
        gridToolPanel_AddContainer(h, eval(GenerateFcn));
    else
        gridToolPanel_AddContainer(h, eval(GenerateFcn), Width);
    end
end

end

